<template>
    <div class="new">
        <div class="headerr">
            <span class="shouye" @click="$router.push('/proportal/index')">首页 /</span>
            <span>公司材料申请</span>
        </div>
        <div class="xuan">
            <div class="top">
                <span>公司材料申请</span>
            </div>
            <div class="bottom">公司资质，案例，及其他申请</div>
        </div>
        <div class="table">
            <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" label-position="top" class="demo-ruleForm">
                <el-form-item label="日期" prop="nowtime">
                    <el-date-picker
                        v-model="ruleForm.nowtime"
                        type="date"
                        size="small"
                        placeholder="选择日期">
                    </el-date-picker>
                </el-form-item>
                <el-form-item label="人员" prop="name">
                    <el-input v-model="ruleForm.name" size="small"></el-input>
                </el-form-item>
                <el-form-item label="申请内容" prop="checkList">
                    <el-checkbox-group v-model="ruleForm.checkList">
                        <el-checkbox label="案例"></el-checkbox>
                        <el-checkbox label="资质"></el-checkbox>
                    </el-checkbox-group>
                </el-form-item>
                <el-form-item label="说明" style="width: 100%;">
                    <el-input type="textarea" v-model="ruleForm.reason" size="small" placeholder="请输入你的认识"></el-input>
                </el-form-item>
            </el-form>
        </div>
        <div class="footer">
            <el-button size="small">取消</el-button>
            <el-button size="small">保存草稿</el-button>
            <el-button size="small" type="primary">提交</el-button>
        </div>
    </div>
</template>
<script>
export default{
    name:'new',
    data() {
        return {
            ruleForm:{
                checkList:[]
            },
            rules:{
                nowtime:[{required: true, message:'请选择', trigger: 'change'}],
                name:[{required: true, message:'请输入', trigger: 'blur'}],
                checkList:[{required: true, message:'请选择', trigger: 'change'}],
            },
        }
    },
    methods:{
        handleCurrentChange(current) {
            this.pageInfo.page = current;
        },
        handleSizeChange(val) {
            this.pageInfo.page_size = val;
        },
    }
}
</script>
<style lang="less" scoped>
.new{
    width: 100%;
    .headerr{
        font-size: 14px;
        .shouye{
            color: rgba(0, 0, 0, 0.45);
            cursor: pointer;
            margin-right: 6px;
        }
    }
    .xuan{
        margin: 16px 0;
        padding: 24px;
        width: 100%;
        background-color: #fff;
        border-radius: 8px;
        .top{
            font-size: 18px;
            font-weight: 600;
            line-height: 25px;
        }
        .bottom{
            font-size: 14px;
            font-weight: 400;
            margin-top: 6px;
            line-height: 25px;
        }
    }
    .table{
        margin-top: 16px;
        padding: 24px 24px 14px;
        background-color: #fff;
        .el-form {
            display: flex;
            flex-wrap: wrap;
            .el-form-item{
                width: 50%;
                padding: 0 10px;
            }
        }
    }
    .footer{
        margin: 25px 0;
        text-align: right;
    }
}
</style>